<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The FANNConnection class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-train.html">fann_train</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="fannconnection.construct.html">FANNConnection::__construct</a></div>
 <div class="up"><a href="book.fann.html">FANN</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.fannconnection" class="reference">

 <h1 class="title">The FANNConnection class</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>


  <div class="section" id="fannconnection.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    <strong class="classname">FANNConnection</strong> is used for the neural network connection.
    The objects of this class are used in <span class="function"><a href="function.fann-get-connection-array.html" class="function">fann_get_connection_array()</a></span> and <span class="function"><a href="function.fann-set-weight-array.html" class="function">fann_set_weight_array()</a></span>.
   </p>
  </div>


  <div class="section" id="fannconnection.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">FANNConnection</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.fannconnection.html#fannconnection.props.from-neuron">$<var class="varname">from_neuron</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.fannconnection.html#fannconnection.props.to-neuron">$<var class="varname">to_neuron</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.fannconnection.html#fannconnection.props.weight">$<var class="varname">weight</var></a></var>
    ;</div>



    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="fannconnection.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$from_neuron</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$to_neuron</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$weight</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="fannconnection.getfromneuron.html" class="methodname">getFromNeuron</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="fannconnection.gettoneuron.html" class="methodname">getToNeuron</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="fannconnection.getweight.html" class="methodname">getWeight</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="fannconnection.setweight.html" class="methodname">setWeight</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$weight</code></span>
   )</div>

   }</div>


  </div>



  <div class="section" id="fannconnection.props">
   <h2 class="title">属性</h2>
   <dl>

    
     <dt id="fannconnection.props.from-neuron"><var class="varname"><var class="varname">from_neuron</var></var></dt>

     <dd>

      <p class="para">The neuron where the connection starts.</p>
     </dd>

    
    
     <dt id="fannconnection.props.to-neuron"><var class="varname"><var class="varname">to_neuron</var></var></dt>

     <dd>

      <p class="para">The neuron where the connection ends.</p>
     </dd>

    
    
     <dt id="fannconnection.props.weight"><var class="varname"><var class="varname">weight</var></var></dt>

     <dd>

      <p class="para">The weight of the connection.</p>
     </dd>

    
   </dl>

  </div>



 </div>

 




































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="fannconnection.construct.html">FANNConnection::__construct</a> — The connection constructor</li><li><a href="fannconnection.getfromneuron.html">FANNConnection::getFromNeuron</a> — Returns the postions of starting neuron.</li><li><a href="fannconnection.gettoneuron.html">FANNConnection::getToNeuron</a> — Returns the postions of terminating neuron</li><li><a href="fannconnection.getweight.html">FANNConnection::getWeight</a> — Returns the connection weight</li><li><a href="fannconnection.setweight.html">FANNConnection::setWeight</a> — Sets the connections weight</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-train.html">fann_train</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="fannconnection.construct.html">FANNConnection::__construct</a></div>
 <div class="up"><a href="book.fann.html">FANN</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
